package com.woniuxy.background.dao;

import com.woniuxy.background.pojo.User;
import com.woniuxy.background.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> queryUsersByPage(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize, @Param("vo") UserVO vo);

    void batchDeleteUser(List<Integer> list);

/*    @Select("select * from user where email = #{email}")
    User selectByEmail(String email);*/
}